export class BaseError extends Error {
  code:BaseErrorCode
  constructor(message: string = "", code: number = BaseErrorCode.Unknown,obj?:any) {
    super();
    this.code = code;
  }
}

export enum BaseErrorCode {
  Ok,
  Unknown,
  PROTOCOL_ERROR,
  LOGIN_FAILED,
  HTTP_REQUEST_ERROR,
  HTTP_BUSINESS_ERROR
}